/**
 *  Copyright(C) 2007 Juri Strumpflohner
 *  All rights reserved
 *
 *  Created: 21.08.2007
*/

package com.aroundj2me.sandbox;

import java.io.IOException;
import java.util.Date;

import org.kxml2.io.KXmlParser;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;

import com.aroundj2me.model.DateUtility;

public class TestClass {
	public static void main(String[] args) throws XmlPullParserException, IOException {
		KXmlParser parser = new KXmlParser();
		parser.nextTag();
		parser.require(XmlPullParser.START_TAG, null, "elements");

		while(parser.nextTag() == XmlPullParser.START_TAG) {
		  parser.require(XmlPullParser.START_TAG, null, "text");

		   // handle element content
		   System.out.println("text content: "+ parser.nextText());

		  parser.require(XmlPullParser.END_TAG, null, "text");
		}

		parser.require(XmlPullParser.END_TAG, null, "elements");
	}
}
